package com.cee.service;

import com.cee.dto.OneSelectDTO;
import com.cee.model.Exam;
import com.cee.model.OneSelect;

import java.util.List;

public interface OneSelectService {

    /**
     * 保存
     * @param oneSelect
     * @throws Exception
     */
    int saveOneSelect(OneSelect oneSelect) throws Exception;


    /**
     * 查询列表
     * @param oneSelectDTO
     * @return
     */
    List<OneSelectDTO> getOneSelectList(OneSelectDTO oneSelectDTO);


    /**
     * examId查询List
     * @param examId
     * @return
     */
    List<OneSelectDTO> getListByExamId(Integer examId);


    /**
     * 逻辑删除， del_date_time = now
     * @param id
     */
    void  deleteOneSelect(Integer id);

}
